
import 'package:flutter/material.dart';

class TLListTile extends StatelessWidget {

  TLListTile({
    Key key,
    this.leading,
    this.title,
    this.subtitle,
    this.trailing,
    this.isThreeLine = false,
    this.dense,
    this.contentPadding,
    this.enable = true,
    this.onTap,
    this.onLongPress,
    this.selected = false,
    this.backgroundColor,
  }) : super(key: key);

  final Widget leading;
  final Widget title;
  final Widget subtitle;
  final Widget trailing;
  final bool  isThreeLine;
  final bool  dense;
  final EdgeInsetsGeometry  contentPadding;
  final bool  enable;
  final GestureTapCallback  onTap;
  final GestureLongPressCallback onLongPress;
  final bool  selected;
  final Color backgroundColor;

  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return Material(
      color: backgroundColor,
      child: InkWell(
        onTap: onTap,
        onLongPress: onLongPress,
        child: ListTile(
          leading: leading,
          title: title,
          subtitle: subtitle,
          trailing: trailing,
          isThreeLine: isThreeLine,
          dense: dense,
          contentPadding: contentPadding,
          enabled: enable,
          selected: selected,
        ),
      ),
    );
  }

}